/**
 * FileName: Store.cpp
 * Author:   kqbi
 * Date:     2019.7.15
 */
#include "Store.h"

Store::Store(const std::weak_ptr<AbstractDb> &db) : _palteInfoStore(db) {
}

Store::~Store() {
}

int Store::AddPlateInfo(std::string &plateName, std::string &plateType, float confidence, std::string &fPath,
                        std::string &pPath, std::string &time) {
    return _palteInfoStore.AddPlateInfo(plateName, plateType, confidence, fPath, pPath, time);
}

void Store::QueryPlateInfoList(int &sum, int startNum, int endNum, const std::string &startTime, const std::string &endTime,
                               std::vector<AbstractDb::PlateInfoRecord> &plateInfoRecordList) {
    _palteInfoStore.QueryPlateInfoList(sum, startNum, endNum, startTime, endTime, plateInfoRecordList);
}